import request from '@/utils/request'

export function creatRecord(data) {
  return request({
    url: '/juanbusiness/content-rich-text/add',
    method: 'post',
    data
  })
}

export function findRecord(data) {
  return request({
    url: '/juanbusiness/content-rich-text/findPage',
    method: 'get',
    params: data
  })
}

export function updateRecord(data) {
  return request({
    url: '/juanbusiness/content-rich-text/edit',
    method: 'put',
    data
  })
}

export function releaseRecord(data) {
  return request({
    url: '/juanbusiness/content-rich-text/enable',
    method: 'put',
    data
  })
}

export function delRecord(id) {
  return request({
    url: `/juanbusiness/content-rich-text/del`,
    method: 'delete',
    params: id
  })
}
